package net.ojbk.study.twobox.dao;

import net.ojbk.study.twobox.beans.po.Staff;
import net.ojbk.study.twobox.beans.vo.SelectOption;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface StaffMapper extends Mapper<Staff> {
    @Select("SELECT COUNT(*) FROM crm_post WHERE id=#{postid}")
    public int getCount_byPostId(int postid);

    @Select("SELECT id id, staffName `name` FROM crm_staff")
    public List<SelectOption> getAllStaff();
}